﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.Sellers;

namespace ZBJF.Warranty.IBLL
{
    public partial interface ISellersService
    {
        /// <summary>
        /// 筛选列表
        /// </summary>
        /// <param name="model">筛选条件</param>
        /// <param name="total">条数</param>
        /// <returns></returns>
        IQueryable<Sellers> GetPagingList(SellersModel model, out int total);

        bool IsExist(string sellerCode);
        bool IsExist(string sellerName, int sellersType, int sellersOrganizationId);
        Sellers LoadByID(long id);
        Sellers LoadBySellerCode(string sellerCode);
        IQueryable<Sellers> GetSellersAll();
        /// <summary>
        /// 获取销售商的密码
        /// </summary>
        /// <param name="sellerCode">销售商编码</param>
        /// <returns></returns>
        string GetSellerPassword(string sellerCode);
    }
}
